Skip to content

getrandom: allow GRND_INSECURE flag#13250

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test/cl919839094
May 27, 2026
Merged

getrandom: allow GRND_INSECURE flag#13250
copybara-service[bot] merged 1 commit into
masterfrom
test/cl919839094

Conversation

@copybara-service
Copy link
Copy Markdown

getrandom: allow GRND_INSECURE flag

Because we fetch from urandom under the assumption that the host urandom has
sufficient entropy, we can allow and silently ignore GRND_INSECURE for the
same reason we currently allow and silently ignore GRND_NONBLOCK.

The randomness will be more secure than what was requested, but this is fine.

@copybara-service copybara-service Bot added the exported Issue was exported automatically label May 22, 2026
@copybara-service copybara-service Bot force-pushed the test/cl919839094 branch 3 times, most recently from 653ffa5 to de7d432 Compare May 27, 2026 04:19
Because we fetch from urandom under the assumption that the host urandom has
sufficient entropy, we can allow and silently ignore GRND_INSECURE for the
same reason we currently allow and silently ignore GRND_NONBLOCK.

The randomness will be more secure than what was requested, but this is fine.

PiperOrigin-RevId: 921880454
@copybara-service copybara-service Bot merged commit 4b8c953 into master May 27, 2026
@copybara-service copybara-service Bot deleted the test/cl919839094 branch May 27, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant